package com.msite.mapper;

import com.msite.config.dbrepos.MyBatisRepository;
import com.msite.model.SysUser;
import com.msite.model.param.SysUserParam;
import com.msite.model.vo.SysUserVo;

import java.util.List;
import java.util.Map;

@MyBatisRepository
public interface SysUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    /**
     * 根据管理员账号{username},查询管理员数据
     * @param username
     * @return
     */
    SysUser getByUsername(String username);

    /**
     * 查询管理员数据
     * @return
     */
    List<SysUserVo> getSysUserVoListBy(SysUserParam param);

    <T> List<T> getTestBy(Map<String,Object> pmap);

}